// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue';
import Cookies from 'js-cookie';
import 'normalize.css/normalize.css'; // a modern alternative to CSS resets

import Element from 'element-ui';

import App from './App';
import router from './router';
import Menu from '@/components/menu';
import Layout from '@/layout';

// import 'normalize.css/normalize.css'; // a modern alternative to CSS resets
import 'element-ui/lib/theme-chalk/index.css';

Vue.config.productionTip = false;

Vue.component('Menu', Menu);
Vue.component('Layout', Layout);

Vue.use(Element, {
  size: Cookies.get('size') || 'medium' // set element-ui default size
});

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router: router,
  components: { App },
  render: h => h(App)
});
